package com.itheima.homework.work3;

public class Athletes extends Person {
    private String inClass;

    public Athletes(String ID, String name, String sex, int age, String inClass) {
        super(ID, name, sex, age);
        this.inClass = inClass;
    }

    public String getInClass() {
        return inClass;
    }

    public void setInClass(String inClass) {
        this.inClass = inClass;
    }

    @Override
    public void eat() {
        System.out.println("吃营养餐");
    }
}
